package com.tang.model.abstractfactory;

import java.util.Objects;

/**
 * @Author tangyuan2meicloud.com
 * @DATE 2021/8/27 22:50
 * @Desc
 * @Remarks
 */
public class PythonCourse extends AbstractCourseFactory {

    private static volatile PythonCourse pythonCourse;

    private PythonCourse(){}

    public static PythonCourse getInstance() {
        if (Objects.isNull(pythonCourse)) {
            synchronized (PythonCourse.class) {
                if (Objects.isNull(pythonCourse)) {
                    pythonCourse = new PythonCourse();
                }
            }
        }
        return pythonCourse;
    }

    @Override
    protected INote createdNote() {
        return new PythonNote();
    }

    @Override
    protected IVedio createdVedio() {
        return new PythonVedio();
    }


}
